package com.db.williamchart.data;

import com.db.williamchart.renderer.RendererConstants;

public class Scale {

    private Float min;
    private Float max;
    private Float size;

    public Scale(Float min, Float max) {
        this.min = min;
        this.max = max;
        this.size = max - min;
    }

    public boolean notInitialized(){
        return max.equals(min) && min == RendererConstants.NOT_INITIALIZED;
    }

    public Float getMin() {
        return min;
    }

    public void setMin(Float min) {
        this.min = min;
    }

    public Float getMax() {
        return max;
    }

    public void setMax(Float max) {
        this.max = max;
    }

    public Float getSize() {
        return size;
    }

    public void setSize(Float size) {
        this.size = size;
    }
}
